<template>
	<view class="content">
		<view class="list">
			<view v-for="(item, index) in list" :key="index">
				<view class="flex-item">
					<view class="tip">管理街道</view>
					<view :class="item.status == 1?'pass':item.status == 3?'passno':''">{{item.province_text}}{{item.city_text}}{{item.area_text}} , {{item.street_text}} <text v-if="item.status == 1" > (审核中)</text><text v-if="item.status == 3"> (已驳回)</text></view>
				</view>
			</view>
		</view>
		<button class="common-btn" @click="Router('/pages/member/horseman/addrow')">申请管理新的街道</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [],
				color: '#FF6001',
			}
		},
		onShow() {
			this.getRiderStreetList();
		},
		onLoad(options) {
			
		},
		methods: {
			getRiderStreetList() {
				this.$http.riderstreet().then((res) => {
					console.log(res)
					if (res.code == 0) {
						this.list = res.data;
					}
				})
			},
			Router(url){
				uni.navigateTo({
					url:url
				})
			}
		}
	}
</script>

<style scoped>
	.content {
		width: 100%;
		background: #fff;
	}

	.list {
		padding: 0px 4%;
	}
	.flex-item{
		display: flex;
		align-items: center;
		background:rgba(187,187,187,0.1);
		border-radius:5px;
		color: #000000;
		padding: 15px 10px;
		margin-top: 10px;
		font-size: 12px;
	}
	.flex-item .tip{
		margin-right: auto;
		font-size: 14px;
		min-width: 80px;
	}
	.flex-item .pass{
		color: #FF6001;
	}
	.flex-item .passno{
		color:  #FE4744;
	}
	.common-btn {
		
		background: linear-gradient(90deg, #FFC500 0%, #FF5F01 100%);
		box-shadow: 0px 4upx 8upx 0px #FFAB71;
		border-radius: 48upx;
		height: 96upx;
		width: 100%;
		color: #FFFFFF;
		font-size: 16px;
		line-height: 96upx;
		position: fixed;
		bottom: 10px;
	}

	.uni-list-cell {
		display: flex;
		flex-direction: row;
	}
</style>
